package com.yjd.bi.user.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.user.model.LoginRateMonthModel;

/**
 * <b>description</b>：用户登录月留存率业务接口<br>
 * <b>time</b>：2016-04-27 17:12:01 <br>
 * <b>author</b>：  renbangjie renbangjie@126.com
 */
public interface ILoginRateMonthService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public LoginRateMonthModel insert(LoginRateMonthModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(LoginRateMonthModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param statistics_date
	 * @return
	 * @throws Exception
	 */
	public int delete(long statistics_date) throws Exception;
	
	/**
	 * 按月统计
	* @param skip
	* @return
	* @throws Exception
	* Map<Integer,List<Integer>>
	 */
	public Map<Integer, List<Integer>> getLoginMonthRate(Integer skip) throws Exception;

	
	/**
	 * 按月统计
	* @param skip
	* @return
	* @throws Exception
	* Map<Integer,List<Integer>>
	 */
	public List<List<Integer>> getLoginMonthRate(Integer skip,Long condition) throws Exception;
}
